﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Dragon.Prototype1.Infrastructure.CodeGenerator;
using Dragon.Prototype1.Infrastructure;

namespace Dragon.Prototype1.Web.Controllers
{
    [HandleError]
    public class HomeController :ThemeControllerBase
    {
        [ThemeActionFilter()]
        [Authorize(Roles="Administrator")]
        public ActionResult Index()
        {
            ViewData["Message"] = "Welcome to ASP.NET MVC!";
            //ICode mycode = CodeManager.CreateInstance("PDN");
            //mycode.GetNextCode();
            //ViewData["newCode"] = mycode.LastCode; 
            return View();
        }
    }
}
